#include <iostream>

#include "../../third_party/cpp-httplib/httplib.h"

int main () {
    // 实例化server对象
    httplib::Server svr;

    // 注册路由
    svr.Get("/", [](const httplib::Request &req, httplib::Response &res){
        res.set_content("Hello qq! My server is running!", "text/plain");
    });

    // 启动服务器并监听
    std::cout << "Server starting on http://localhost:9090 ..." << std::endl;
    svr.listen("0.0.0.0", 9090);
    
    return 0;
}